package java093;

import java.math.BigDecimal;
import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		Double m,n;
		m = sc.nextDouble();
		n = sc.nextDouble();
		System.out.println(add(m,n));
		System.out.println(multiply(m,n));
				
	}
	private static String multiply(Double v1, Double v2) {
		BigDecimal b1 = new BigDecimal(Double.toString(v1));
		BigDecimal b2 = new BigDecimal(Double.toString(v2));
		return b1.multiply(b2).toString();
	}
	public static String add(double v1,double v2){
		BigDecimal b1 = new BigDecimal(Double.toString(v1));
		BigDecimal b2 = new BigDecimal(Double.toString(v2));
		return b1.add(b2).toString();
	}
}

